###########################################################################
# Paula Windecker, Ioannis Vergioglou, and Marc S. Jacob
# Living in Different Worlds: Electoral Authoritarianism and
# Partisan Gaps in Perceptions of Electoral Integrity
# British Journal of Political Science
# README 
###########################################################################

TABLE OF CONTENTS

META CODE

"01_main.R": master code to reproduce all results

CODE

"02_setup.R": code to install and load packages
"03_study1.R": reproduce results for Study 1 in manuscript and appendix
"04_study2.R": reproduce results for Study 2 in manuscript and appendix
"05_study3.R": reproduce results for Study 3 in manuscript and appendix


PROJECT ENVIRONMENT

"2024_integrity_BJPS.Rproj"
"figure_design.R"
"lmroman10-regular-webfont.ttf"
"README.txt"
"codebook.pdf"

DATA

"vdem_v14_subset.rds" | Coppedge, Michael; Gerring, John; Knutsen, Carl Henrik; Lindberg, Staffan I.; Teorell, Jan; Altman, David et al.: V-Dem Codebook v14: Varieties of Democracy (V-Dem) Project.
"covariates_subset.rds" | World Bank (2024): World Development Indicators. Available online at https://databank.worldbank.org/source/world-development-indicators.
"ivs_1981-2021_subset.rds" | Integrated Values Surveys (IVS) 1981-2022. Available online at https://europeanvaluesstudy.eu/methodology-data-documentation/integrated-values-surveys/
"evs_party.csv": EVS party codings
"wvs_party.csv": WVS party codings
"gallup_subset.rds" (REMOVED: COPYRIGHT) | Gallup (2021): World Gallup Poll
"WVS_turkey_v1_6_subset.rds" | Haerpfer, C., Inglehart, R., Moreno, A., Welzel, C., Kizilova, K., Diez-Medrano J., M. Lagos, P. Norris, E. Ponarin & B. Puranen (eds.). 2022. World Values Survey: Round Seven – Country-Pooled Datafile Version 6.0. Madrid, Spain & Vienna, Austria: JD Systems Institute & WVSA Secretariat. doi:10.14281/18241.24

SESSION INFO

R version 4.4.1 (2024-06-14 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 22631)

Matrix products: default


locale:
[1] LC_COLLATE=English_United States.utf8  LC_CTYPE=English_United States.utf8    LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C                           LC_TIME=English_United States.utf8    

time zone: America/New_York
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] ggExtra_0.10.1  interflex_1.2.6 showtext_0.9-7  showtextdb_3.0  sysfonts_0.8.9  labelled_2.13.0 lme4_1.1-35.5   Matrix_1.7-0   
 [9] hIRT_0.3.0      srvyr_1.3.0     broom_1.0.6     rdpower_2.2     stargazer_5.2.3 rddtools_1.6.0  np_0.60-17      rdlocrand_1.0  
[17] rdrobust_2.2    rdd_0.57        Formula_1.2-5   AER_1.2-14      survival_3.6-4  car_3.1-2       carData_3.0-5   lmtest_0.9-40  
[25] zoo_1.8-12      sandwich_3.1-0  foreign_0.8-86  texreg_1.39.4   lubridate_1.9.3 forcats_1.0.0   stringr_1.5.1   dplyr_1.1.4    
[33] purrr_1.0.2     readr_2.1.5     tidyr_1.3.1     tibble_3.2.1    ggplot2_3.5.1   tidyverse_2.0.0